package cn.lenchu.stock.xueqiu;

import cn.lenchu.stock.model.StandardCodeTypeEnum;
import cn.lenchu.stock.model.StockCodeConverter;
import lombok.NonNull;

/**
 * @author lenchu
 */
public class XueQiuCodeConverter implements StockCodeConverter<XueQiuCode> {
    @Override
    public XueQiuCode convert(@NonNull String standardCode) {
        return XueQiuCode.fromStandardCode(standardCode);
    }

    @Override
    public XueQiuCode convert(String standardCode, @NonNull StandardCodeTypeEnum codeType) {
        return XueQiuCode.fromStandardCode(standardCode);
    }
}
